package com.chixing.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

@TableName("chat_history")
@ApiModel(value = "ChatHistory对象", description = "")
public class ChatHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("聊天id")
    @TableId(value = "chat_id", type = IdType.AUTO)
    private Integer chatId;

    @ApiModelProperty("发起人姓名")
    private String sponsorName;

    @ApiModelProperty("接收人姓名")
    private String recipientName;

    @ApiModelProperty("聊天内容")
    private String chatContent;

    @ApiModelProperty("聊天未读为0，已读为1")
    private Integer chatStatus;

    public Integer getChatId() {
        return chatId;
    }

    public void setChatId(Integer chatId) {
        this.chatId = chatId;
    }
    public String getSponsorName() {
        return sponsorName;
    }

    public void setSponsorName(String sponsorName) {
        this.sponsorName = sponsorName;
    }
    public String getRecipientName() {
        return recipientName;
    }

    public void setRecipientName(String recipientName) {
        this.recipientName = recipientName;
    }
    public String getChatContent() {
        return chatContent;
    }

    public void setChatContent(String chatContent) {
        this.chatContent = chatContent;
    }

    public Integer getChatStatus() {
        return chatStatus;
    }

    public void setChatStatus(Integer chatStatus) {
        this.chatStatus = chatStatus;
    }

    @Override
    public String toString() {
        return "ChatHistory{" +
                "chatId=" + chatId +
                ", sponsorName='" + sponsorName + '\'' +
                ", recipientName='" + recipientName + '\'' +
                ", chatContent='" + chatContent + '\'' +
                ", chatStatus=" + chatStatus +
                '}';
    }
}
